﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FindingCreate.ascx.cs"
    Inherits="HolcimProject.ControlTemplates.HolcimProject.FindingCreate" %>
<link type="text/css" rel="stylesheet" href="/_layouts/HolcimProject/CSS/Finding.css" />
<link type="text/css" rel="stylesheet" href="/_layouts/1033/styles/Themable/forms.css" />
<style type="text/css">
    .ms-formlabel
    {
        font-weight: normal;
        width: 200px;
    }
    .ms-formtable
    {
        border-collapse: collapse;
    }
    .style1
    {
        color: #FF0000;
    }
    textarea
    {
        resize: none;
    }
</style>

<div id="InformationProcess" runat="server">
</div>
<table class="ms-formtable">
    <tr class="">
        <td class="ms-formlabel">
            Audit name: <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <asp:DropDownList ID="drAuditName" runat="server" Height="18px" Width="283px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            System: <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <asp:DropDownList ID="drSystem" runat="server" Height="18px" Width="283px" 
                AutoPostBack="True" onselectedindexchanged="drSystem_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            Clause: <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <asp:DropDownList ID="drClause" runat="server" Height="18px" Width="283px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            Site: <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <asp:DropDownList ID="drSite" runat="server" Height="18px" Width="283px" OnSelectedIndexChanged="drSite_SelectedIndexChanged"
                AutoPostBack="True">
            </asp:DropDownList>
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            Department: <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <asp:DropDownList ID="drDepartment" runat="server" Height="18px" Width="283px" OnSelectedIndexChanged="drDepartment_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            Auditee Department: <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <asp:DropDownList ID="drAuditeeDepartment" runat="server" Height="18px" Width="283px"
                AutoPostBack="True">
            </asp:DropDownList>
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            Classification: <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <asp:DropDownList ID="drClassification" runat="server" Height="18px" Width="283px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            Lead Auditor: <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <SharePoint:PeopleEditor ID="ppLeadAuditor" runat="server" MaximumEntities="100"
                Rows="1" MultiSelect="false" AllowEmpty="true" ValidatorEnabled="true" Width="283px" />
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            Auditee: <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <SharePoint:PeopleEditor ID="ppAuditee" runat="server" MaximumEntities="100" Rows="1"
                MultiSelect="false" AllowEmpty="true" ValidatorEnabled="true" Width="283px" />
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            Finding(s): <span class="style1">*</span>
        </td>
        <td class="ms-formbody">
            <asp:TextBox ID="txtFinding" runat="server" Height="112px" Width="386px" TextMode="MultiLine"></asp:TextBox>
        </td>
    </tr>
    <tr class="">
        <td class="ms-formlabel">
            Attach file:
        </td>
        <td class="ms-formbody">
            <asp:FileUpload ID="attackFile" runat="server" Width="283px" />
        </td>
    </tr>
</table>
<span class="style1" runat="server" id="messageError"></span>
<table width="100%" cellspacing="0" cellpadding="0" style="padding-top: 7px">
    <tbody>
        <tr>
            <td width="100%">
                <input type="HIDDEN" id="ctl00_m_g_20bf62a4_7742_4a94_bd96_8622a0c1418c_ctl00_ctl08_ctl00_owshiddenversion"
                    name="ctl00$m$g_20bf62a4_7742_4a94_bd96_8622a0c1418c$ctl00$ctl08$ctl00$owshiddenversion">
                <table width="100%" cellspacing="0" cellpadding="2" border="0" id="ctl00_m_g_20bf62a4_7742_4a94_bd96_8622a0c1418c_ctl00_toolBarTbl"
                    class="ms-formtoolbar">
                    <tbody>
                        <tr>
                            <td width="99%" nowrap="nowrap" class="ms-toolbar">
                                <img width="1" height="18" alt="" src="/_layouts/images/blank.gif">
                            </td>
                            <td nowrap="nowrap" class="ms-toolbar">
                                <table width="100%" cellspacing="0" cellpadding="0">
                                    <tbody>
                                        <tr>
                                            <td width="100%" align="right" nowrap="nowrap">
                                                <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click"  />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td class="ms-separator">
                                &nbsp;
                            </td>
                            <td nowrap="nowrap" class="ms-toolbar">
                                <table width="100%" cellspacing="0" cellpadding="0">
                                    <tbody>
                                        <tr>
                                            <td width="100%" align="right" nowrap="nowrap">
                                                <asp:Button ID="btnSendAndNew" runat="server" Text="Send And Next" OnClick="btnSendAndNew_Click" />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td class="ms-separator">
                                &nbsp;
                            </td>
                            <td nowrap="nowrap" class="ms-toolbar">
                                <table width="100%" cellspacing="0" cellpadding="0">
                                    <tbody>
                                        <tr>
                                            <td width="100%" align="right" nowrap="nowrap">
                                                <asp:Button ID="btnSend" runat="server" Text="Send" OnClick="btnSend_Click" />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td class="ms-separator">
                                &nbsp;
                            </td>
                            <td nowrap="nowrap" class="ms-toolbar">
                                <table width="100%" cellspacing="0" cellpadding="0">
                                    <tbody>
                                        <tr>
                                            <td width="100%" align="right" nowrap="nowrap">
                                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>

